/**
 * @company : 版权所属 四川北星惯牌科技有限公司
 * @contact : 刘经理 19326416371
 **/
import request from '@/utils/request.js';
const login = {
	registerOrlogin: (data) => { //注册
		return request('/user/mobilelogin', 'post', data)
	},
	login: (data) => { //密码登录
		return request('/user/login', 'post', data)
	},
	getCode: (data) => { //获取验证码
		return request('/sms/send', 'post', data)
	},
	VerificationCode: (data) => { //验证验证码
		return request('/sms/check', 'post', data)
	},
	restPassword: (data) => { //重置密码
		return request('/user/resetpwd', 'post', data)
	},
	logout: () => { //退出登录
		return request('/user/logout', 'post');
	},
	getOpenId: (data) => {
		return request('/user/getOpenId', 'post', data);
	},
	/**
	 * 获取启动配置
	 */
	getStartConfig: (data) => {
		return request('/index/config', 'post', data);
	},
	/**
	 * 注销
	 */
	cancellation: (data, loading) => {
		return request('/user/destroy', 'post', data);
	},

}
export default login;